package io.github.frailty9.crserver.controller

import cn.dev33.satoken.util.SaResult
import org.noear.solon.annotation.Controller
import org.noear.solon.annotation.Inject
import org.noear.solon.annotation.Mapping
import org.noear.solon.annotation.Param

@Controller
@Mapping("/api/test")
class TestController {

    @Mapping("/test")
    fun all(@Param(defaultValue = "Hello")value: String): SaResult {
        return SaResult.ok(value)
    }

}